package query

import (
	"ssalarm/common/dto"
)

type SysProductQuery struct {
	dto.Pagination `search:"-"`
	dto.OrderBy    `search:"-"`
	Id             string `form:"id" json:"id" search:"type:exact;column:id;table:sys_dev_product"`
	NameLike       string `form:"nameLike"  search:"type:contains;column:name;table:sys_dev_product"`

	IdIn           []string `search:"type:in;column:id;table:sys_dev_product"`
	NameEq         string   `search:"type:exact;column:name;table:sys_dev_product"`
	ProductCode    string   `search:"type:exact;column:model;table:sys_dev_product"`
	ProductCodeNin []string `search:"type:nin;column:model;table:sys_dev_product"`
	DeptIdIn       []string `search:"type:in;column:dept_id;table:sys_dev_product"`
}

func (m *SysProductQuery) GetNeedSearch() interface{} {
	return *m
}
